-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorporate Interoperability Event Features to wwwverifier #371
Incorporate Interoperability Event Features to wwwverifier #371
Conversation
...d/src/main/java/com/android/identity/android/mdoc/deviceretrieval/DeviceRetrievalHelper.java
Outdated
Show resolved
Hide resolved
mOriginInfos.add(originInfo); | ||
} | ||
} catch (Exception e) { | ||
Logger.w(TAG, "OriginInfo is incorrectly formatted. We expect OriginInfo = {\"cat\": uint, \"type\": uint, \"details\": tstr} in accordance with WD6 of 18013-7."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overly verbose. Just "OriginInfo is incorrectly formatted" also please include e
in the Logger.w()
call.
d6c78f2
to
69306a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing and then I think it's ready to go!
mOriginInfos.add(originInfo); | ||
} | ||
} catch (Exception e) { | ||
Logger.w(TAG, "OriginInfo is incorrectly formatted." + e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more correct to use the Logger
variant which takes an error, e.g. Logger.w(TAG, "foo", e)
instead of Logger.w(TAG, "foo" + e)
Added the ability to chose between request scenarios, as well as required checks + associated logging. Also added the ability to render the returned portrait image. Manually tested.
69306a6
to
04132ec
Compare
Added the ability to chose between request scenarios, as well as required checks + associated logging. Also added the ability to render the returned portrait image.
Manually tested.
Fixes #358